package com.example.design_pattern.responsibility_chain;

public class JiaShe extends Player {

    public JiaShe(){

    }

    public JiaShe(Player player){
        setmSuccessor(player);
    }

    @Override
    protected void handle(int index) {
        if(index == 1){
            System.out.println("贾赦处理了......");
        }else{
            System.out.println("贾赦传给下一个人......");
            next(index);
        }
    }
}
